<?php
/**
 * Description:this is description
 * User:ligan
 * Date:2021/11/22
 * Time:9:51 上午
 */
require "../vendor/autoload.php";

use EasyDB\Tools\Strings;

$rt = Strings::checkIDCardValid("320882199204042653");
var_dump($rt);

$rt2 = Strings::getBirthdayAge("1992-12-04");
var_dump($rt2);

$str = "union all";
$rt2 = Strings::cleanXss($str);
var_dump($rt2);


var_dump(\EasyDB\Tools\Hash::hash256(["a", "b"]));

$sk = md5(time());
$iv = substr($sk, 0, 16);
var_dump(\EasyDB\Tools\Hash::hashHmac("sha256", $sk, $iv));
var_dump(\EasyDB\Tools\Hash::hash256($sk));
